<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>ADMIN</title>
    <link rel="stylesheet" href="./css/admin/base-v2.css">
    <link rel="stylesheet" href="./lib/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/admin/app.css">
</head>

<body>

    <div class="app-page">

        <div class="app-page-content">
            <div class="app-card">
                <div class="app-card-body">

                    <table class="z-table">
                        <thead>
                            <th>ID</th>
                            <th>版本号</th>
                            <th>上传时间</th>
                            <th>操作</th>
                        </thead>
                        <tbody>
                            <tr>
                                <td>1868</td>
                                <td>15001_广州_20180303.json</td>
                                <td>10</td>
                                <td class="btn-group">
                                    <a class="btn-upgrade">升级</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>

                    <!-- 分页 -->
                    <div class="z-page z-pat z-fr">
                        <span class="active">1</span>
                        <a href="#">2</a>
                        <a href="#">3</a>
                        <a href="#" class="last">尾页</a>
                        <a href="#" class="next">下一页</a>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <script src="lib/jquery.min.js"></script>
    <script src="js/popup.js"></script>
    <script src="js/admin/app.js"></script>
    <script>
        $(document).on('click', '.btn-upgrade', function(params) {
            console.log('btn-upgrade');

            // 升级成功
            popup.tipsTop('升级成功', 'success')

            // 升级失败
            // popup.tipsTop('升级失败', 'error')
        })
    </script>
</body>

</html>